package local.bbs.cont.controller;

import local.bbs.cont.command.BBSCommand;
import local.bbs.cont.service.BBSUpdateService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.portlet.ModelAndView;

@Controller
@Scope("prototype")
public class BBSUpdateController {
	
	@Autowired
	BBSUpdateService bbsUpdateService;

	@RequestMapping("/cont/{bbsNo}/insert.do")
	public ModelAndView insert(@PathVariable int bbsNo, BBSCommand bbsCommand) {
		bbsCommand.setBbsNo(bbsNo);
		ModelAndView mav = new ModelAndView();
		
		return mav;
	}
	
	@RequestMapping("/cont/{bbsNo}/update.do")
	public ModelAndView update(@PathVariable int bbsNo, BBSCommand bbsCommand) {
		bbsCommand.setBbsNo(bbsNo);
		ModelAndView mav = new ModelAndView();
		
		return mav;
	}
	
	@RequestMapping("/cont/{bbsNo}/delete.do")
	public ModelAndView delete(@PathVariable int bbsNo, BBSCommand bbsCommand) {
		bbsCommand.setBbsNo(bbsNo);
		ModelAndView mav = new ModelAndView();
		
		return mav;
	}
	
}
